package com.jing.ads.application;

public interface GlobalConstants {
	public static final boolean DEBUG = false;
	
	public static final String PACKAGE_NAME = GlobalConstants.class.getPackage().getName();
	
	public static final int SELF_ID = 0;
	public static final String SOU_PACKAGE_NAME = "com.jing.ads";
    public static final String SOU_PREFERENCES = "com.jing.ads_preferences";    
    public static final String MIMETYPE_APK = "application/vnd.android.package-archive";        
    
    public static final String HTTP_CACHE_SUBDIR = "/JingADS/cache";   
    public static final String CHANNEL = "channel";
    public static final String SHOW_PROFILE = "show_profile";
    
    /*------image prefix-----*/
    public static final String PREFIX_APP_ICON = "app_icon_";
    public static final String PREFIX_CATEGORY_ICON = "category_icon_";
    public static final String PREFIX_SNAPSHOT = "snapshot_";
    public static final String PREFIX_SNAPSHOT_FULL = "snapshot_full_";
    
    /*-------broadcast action name--------*/
    public static final String ACTION_SYSINSTALL_APK = PACKAGE_NAME + ".SYSINSTALL_APK";
    public static final String DOWNLOAD_START = "download_start";
    public static final String DOWNLOAD_COMPLETE = "download_complete";
    public static final String DOWNLOAD_ERROR = "download_error";
    
    /*-------type id for different content------*/
    public static final int TYPE_ID_DIRECT_DOWNLOAD = 0;
    
    public static final int TYPE_ID_RELATED_KEYWORDS = 10;
    public static final int TYPE_ID_QUERY_SUGGESTION = 11;
    public static final int TYPE_ID_AUTO_COMPLETE = 12;
    public static final int TYPE_ID_NATIVE_DETAIL = 13;
    public static final int TYPE_ID_BROWSER_DETAIL = 14;
    public static final int TYPE_ID_APP_ICON = 15;
    public static final int TYPE_ID_CATEGORY_ICON = 16;
    public static final int TYPE_ID_SNAPSHOT = 17;
    public static final int TYPE_ID_SNAPSHOT_FULL = 18;
    
    public static final int EMOTION_SHAKE_BASEVERSION = 14738;
    public static final int EMOTION_REQUEST_START = 0;
    public static final int EMOTION_REQUEST_SIZE = 4; 
    public static final int EMOTION_REQUEST_VERSION = 2;
    
    /**
     * definitions of the response code for API request's error. 
     * 濡傛灉鍙戠敓閿欒杩斿洖缁撴灉涓猴細{"code":xxx,"msg":"xxx"}, 鎴愬姛鐨勮瘽鐩存帴杩斿洖缁撴灉json涓�
     */
    public static final int RESPONSE_CODE_UNDEFINED = -1;  //鏈畾涔�    public static final int RESPONSE_CODE_FAIL = 0;    //澶辫触
    public static final int RESPONSE_CODE_ILLEGAL_PARAM = 2;    //闈炴硶鐨勫弬鏁�    public static final int RESPONSE_CODE_INTERNAL_JSON_ERROR  = 9;    //鍐呴儴鏍煎紡閿欒
    public static final int RESPONSE_CODE_INFOMATION_INCOMPLETE = 1000;    //淇℃伅涓嶅畬鏁�    public static final int RESPONSE_CODE_API_PROCESS_ERROR = 2000;    //API澶勭悊閿欒
    public static final int RESPONSE_CODE_NOT_SUPPORTED_APIVERSION = 3000;    //涓嶆敮鎸佺殑API鐗堟湰
    
    /*----------------------------Log related info-----------------------------*/
    public static final int LOG_VERSION = 1;
    
    public static final String PREFIX_APP_NAME = "|A";
    public static final String PREFIX_CATEGORY_NAME = "|C";
    public static final String PREFIX_EMOTIONAL_NAME = "|E";
    public static final String PREFIX_QUERY_NAME = "|Q";
    
    
}
